//环境变量
const env = process.env.REACT_APP_ENV; //development test production

//地址配置(默认测试地址)
const urlConfig = {
  baseUrl: 'http://wxtest.zilongshu.com', // 项目打包时接口的前缀地址，本地调试时请设置为''
};

switch (env) {
  case 'development':
    urlConfig.baseUrl = ''
    break;
  case 'local_development':
    urlConfig.baseUrl = ''
    break;
  case 'test':
    urlConfig.baseUrl = 'http://wxtest.zilongshu.com'
    break;
  case 'production':
    urlConfig.baseUrl = 'https://www.zilongshu.com'
    break;
  default: break;
};

const ossConfig = {
  region: 'oss-cn-beijing',
  accessKeyId: 'LTAILu6zWD5eG2SO',
  accessKeySecret: 'bdW7usvolHDJ0D5p9Udcjo14LKFpaU',
  bucket: 'zilong-bucket'
}

const tabsData = [
  { courseType: 0, name: '全部课程', active: true },
  { courseType: 1, name: '龙英语', },
  { courseType: 3, name: '龙编程' },
]

export {
  urlConfig, //地址
  ossConfig, //oss下载配置
  tabsData,
}